Skip to content

Conversation

@VVBondarenko
Copy link

@VVBondarenko VVBondarenko commented Aug 15, 2024

Motivation: when using connector with thrift server, any queries on data containing date/time types are crashing. It's caused by thrift server enabling spark.sql.datetime.java8API.enabled flag for all of its sessions.

Supported JSR-310 types which are already supported by Spark SQL:

  • LocalDate
  • LocalDateTime
  • Instant Other types are causing Encoder to fail, so they won't work even if taken into account.

As spark.sql.datetime.java8API.enabled is disabled by default, it shouldn't cause compatibility issues.

SPARK-453

Motivation: when using connector with thrift server, any queries on data containing date/time types are crashing. It's caused by thrift server enabling `spark.sql.datetime.java8API.enabled` flag for all of its sessions.

Supported JSR-310 types which are already supported by Spark SQL:
- LocalDate
- LocalDateTime
- Instant
Other types are causing Encoder to fail, so they won't work even if taken into account.

As `spark.sql.datetime.java8API.enabled` is disabled by default, it shouldn't cause compatibility issues.
@jyemin jyemin marked this pull request as draft November 18, 2024 22:02
@rozza rozza added the external label Mar 4, 2025
@rozza rozza marked this pull request as ready for review March 4, 2025 17:30
@rozza rozza requested a review from a team as a code owner December 1, 2025 09:26
@rozza rozza requested review from katcharov and rozza and removed request for katcharov December 1, 2025 09:26
rozza added a commit to rozza/mongo-spark that referenced this pull request Dec 3, 2025
Motivation: when using connector with thrift server, any queries on data containing date/time types are crashing. It's caused by thrift server enabling `spark.sql.datetime.java8API.enabled` flag for all of its sessions.

Supported JSR-310 types which are already supported by Spark SQL:
- LocalDate
- LocalDateTime
- Instant

Other types are causing Encoder to fail, so they won't work even if taken into account.

As `spark.sql.datetime.java8API.enabled` is disabled by default, it shouldn't cause compatibility issues.

Adds support for the Spark 3.4 TimeTimestampNTZType

SPARK-453

Original PR: mongodb#125
---------
Co-authored-by: Ross Lawley <[email protected]>
@rozza
Copy link
Member

rozza commented Dec 3, 2025

Closed in favor of: #144 - which takes this PR as a base

@rozza rozza closed this Dec 3, 2025
rozza added a commit to rozza/mongo-spark that referenced this pull request Dec 3, 2025
Motivation: when using connector with thrift server, any queries on data containing date/time types are crashing. It's caused by thrift server enabling `spark.sql.datetime.java8API.enabled` flag for all of its sessions.

Supported JSR-310 types which are already supported by Spark SQL:
- LocalDate
- LocalDateTime
- Instant

Other types are causing Encoder to fail, so they won't work even if taken into account.

As `spark.sql.datetime.java8API.enabled` is disabled by default, it shouldn't cause compatibility issues.

Adds support for the Spark 3.4 TimeTimestampNTZType

SPARK-453

Original PR: mongodb#125
---------
Co-authored-by: Ross Lawley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants